package edu.ccut.saturn.studio.component.wizard;

import edu.ccut.saturn.studio.component.editor.ComponentFileEditor;
import edu.ccut.saturn.studio.core.util.wizard.SaturnWizard;

public class ComponentWizard extends SaturnWizard {

	@Override
	protected String getEditorID() {
		return ComponentFileEditor.SATURN_COMPONENT_FILE_EDITOR;
	}

	@Override
	protected String getFileName() {
		return (String) super
				.getValues()
				.get(
						ComponentWizardPage.SATURN_COMPONTENTFILEWZARD_COMPONTENT_FILENAME) + ".component";
	}

	@Override
	protected String getTemplatePath() {
		return "template/saturncomponents.ftl";
	}

	@Override
	public void addPages() {
		addPage(new ComponentWizardPage(super.getSelection()));
	}
}
